<?php
define('IN_SMT',true);
define ('CURSCRIPT','info');
define('IN_MYMPS', true);

require_once dirname(__FILE__)."/include/global.php";
require_once MYMPS_DATA."/config.php";

ifsiteopen();
require_once MYMPS_DATA."/config.db.php";
require_once MYMPS_INC."/db.class.php";
require_once MYMPS_SMARTY."/include.php";

$id			= isset($id) 	   ? intval($id) 	: '';
$catid		= isset($catid)    ? intval($catid) : '';
$areaid		= isset($areaid)   ? intval($areaid): '';

if($catid){
	include MYMPS_ASS.'/'.CURSCRIPT.'_list.php';
	$smarty -> display(mymps_tpl('info_list'),$catid.$page);
} elseif($id) {
	include MYMPS_ASS.'/'.CURSCRIPT.'.php';
	$smarty -> display(mymps_tpl(CURSCRIPT),$id);
} else {
	write_msg('Access Dined','olmsg');
}

is_object($db) && $db->Close();
$mymps_global = $smarty = $db = $id = $catid = $areaid = $timestamp = NULL;
?>